package View;

import javax.swing.JFrame;

import Controller.Controller;
import Controller.Model;

public class WindowSimu extends JFrame {
	private static final long serialVersionUID = 1L;
	private final SimulationPanel _simu;
	private final Controller _ctrl;
	private final Model _m;

	public WindowSimu(Controller crtl, Model m) {
		_ctrl = crtl;
		_m = m;
		_simu = new SimulationPanel(_ctrl, _m);
		setTitle("Simulation");
		setSize(900, 750);
		setLocationRelativeTo(null);
		setResizable(false);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setContentPane(_simu);
		setVisible(true);
	}

	public SimulationPanel getPanel() {
		return _simu;
	}

}
